import request from '@/utils/request'

// 查询积分商品尺寸列表
export function listSize(query) {
  return request({
    url: '/recycle/size/list',
    method: 'get',
    params: query
  })
}

// 查询积分商品尺寸详细
export function getSize(id) {
  return request({
    url: '/recycle/size/' + id,
    method: 'get'
  })
}

// 新增积分商品尺寸
export function addSize(data) {
  return request({
    url: '/recycle/size',
    method: 'post',
    data: data
  })
}

// 修改积分商品尺寸
export function updateSize(data) {
  return request({
    url: '/recycle/size',
    method: 'put',
    data: data
  })
}

// 删除积分商品尺寸
export function delSize(id) {
  return request({
    url: '/recycle/size/' + id,
    method: 'delete'
  })
}
